/*
 * Copyright 2021-2030 itbox.com All right reserved. This software is the confidential and proprietary information
 * of itbox.com ("Confidential Information"). You shall not disclose such Confidential Information and shall use it
 * only in accordance with the terms of the license agreement you entered into with itbox.com.
 */
package cn.itbox.example.application.service;


import cn.itbox.example.model.request.RolePageRequest;
import cn.itbox.example.model.response.RoleResponse;
import cn.itbox.uap.db.model.PageResult;

import java.util.List;

/**
 * @BelongProject springboot-study
 * @BelongPackage cn.itbox.example.application.service
 * @Description TODO
 * @ClassName RoleQueryService
 * @Author xingc
 * @Date 2023/11/26 23:09
 * @Version 1.0.0
 */
public interface RoleQueryService {

    RoleResponse byId(Long id);

    /**
     * 角色所有数据查询
     */
    List<RoleResponse> list();

    /**
     * 角色分页数据查询
     * @param pageIndex
     * @param pageSize
     * @return
     */
    PageResult<RoleResponse> pageList(Long pageIndex, Long pageSize);

    /**
     * 角色分页数据查询
     * @param request
     */
    PageResult<RoleResponse> pageList(RolePageRequest request);
}
